Holds all information about the blend operations to use when rendering. More...
Public Member Functions | |
| BlendState () | |
| virtual | ~BlendState () |
| virtual bool | getAlphaToCoverageEnabled () const =0 |
| virtual bool | getIndependantBlendEnabled () const =0 |
| virtual bool | getTargetBlendEnabled (unsigned int targetId=0) const =0 |
| virtual BLEND | getTargetSrcBlend (unsigned int targetId=0) const =0 |
| virtual BLEND | getTargetDestBlend (unsigned int targetId=0) const =0 |
| virtual BLEND_OP | getTargetBlendOp (unsigned int targetId=0) const =0 |
| virtual BLEND | getTargetSrcBlendAlpha (unsigned int targetId=0) const =0 |
| virtual BLEND | getTargetDestBlendAlpha (unsigned int targetId=0) const =0 |
| virtual BLEND_OP | getTargetBlendOpAlpha (unsigned int targetId=0) const =0 |
| virtual COLOR_WRITE_ENABLE | getTargetWriteMask (unsigned int targetId=0) const =0 |
| virtual void | setAlphaToCoverageEnabled (bool value)=0 |
| virtual void | setIndependentBlendEnabled (bool value)=0 |
| virtual void | setTargetBlendEnable (bool value, unsigned int targetId=0)=0 |
| virtual void | setTargetSrcBlend (BLEND type, unsigned int targetId=0)=0 |
| virtual void | setTargetDestBlend (BLEND type, unsigned int targetId=0)=0 |
| virtual void | setTargetBlendOp (BLEND_OP type, unsigned int targetId=0)=0 |
| virtual void | setTargetSrcBlendAlpha (BLEND type, unsigned int targetId=0)=0 |
| virtual void | setTargetDestBlendAlpha (BLEND type, unsigned int targetId=0)=0 |
| virtual void | setTargetBlendOpAlpha (BLEND_OP type, unsigned int targetId=0)=0 |
| virtual void | setTargetWriteMask (COLOR_WRITE_ENABLE mask, unsigned int targetId=0)=0 |
| virtual void | resetToDefault ()=0 |
| virtual void | exportClassToTree (nkExport::Node *rootNode) |
| virtual void | importClassFromTree (nkExport::Node *rootNode) |
Public Member Functions inherited from nkGraphics::Resource | |
| Resource () | |
| Resource (const nkMemory::StringView &path) | |
| virtual | ~Resource () |
| virtual bool | load ()=0 |
| virtual void | unload ()=0 |
| bool | isReadyForRendering () const |
| bool | isUnloaded () const |
| RESOURCE_LOAD_STATE | getLoadState () const |
| nkMemory::StringView | getResourcePath () const |
| RESOURCE_TYPE | getResourceTypeName () const |
| nkMemory::StringView | getResourceName () const |
| bool | getHidden () const |
| virtual void | setResourcePath (const nkMemory::StringView &path) |
| void | setResourceName (const nkMemory::StringView &name) |
| void | setHidden (bool value) |
Public Member Functions inherited from nkExport::Exportable | |
| Exportable () | |
| virtual | ~Exportable () |
Holds all information about the blend operations to use when rendering.
| nkGraphics::BlendState::BlendState | ( | ) |
Constructor. See BlendStateManager::createOrRetrieve().
|
virtual |
Destructor. See BlendStateManager::erase().
|
pure virtual |
|
pure virtual |
|
pure virtual |
| targetId | The id of the target to query. Between [0, 7]. |
|
pure virtual |
| targetId | The id of the target to query. Between [0, 7]. |
|
pure virtual |
| targetId | The id of the target to query. Between [0, 7]. |
|
pure virtual |
| targetId | The id of the target to query. Between [0, 7]. |
|
pure virtual |
| targetId | The id of the target to query. Between [0, 7]. |
|
pure virtual |
| targetId | The id of the target to query. Between [0, 7]. |
|
pure virtual |
| targetId | The id of the target to query. Between [0, 7]. |
|
pure virtual |
| targetId | The id of the target to query. Between [0, 7]. |
|
pure virtual |
Sets whether the alpha to coverage should be used during multi sampling.
| value | If this option should be enabled (true) or not (false). |
|
pure virtual |
Sets whether the blending should be made independant between all targets. If not, the blending is done the same accross all targets, using the parameters for target 0.
| value | Whether the option should be enabled (true) or not (false). |
|
pure virtual |
Sets whether the blending for a particular target is enabled.
| value | Whether the blending is enabled (true) or not (false). |
| targetId | The id of the target to alter. Between [0, 7]. |
|
pure virtual |
Sets the type of blending used when blending the source colour.
| type | The blending to use. |
| targetId | The id of the target to alter. Between [0, 7]. |
|
pure virtual |
Sets the type of blending used when blending the target colour.
| type | The blending to use. |
| targetId | The id of the target to alter. Between [0, 7]. |
|
pure virtual |
Sets the blending operation used when blending colours.
| type | The blending operation to use. |
| targetId | The id of the target to alter. Between [0, 7]. |
|
pure virtual |
Sets the type of blending used when blending the source alpha.
| type | The blending to use. |
| targetId | The id of the target to alter. Between [0, 7]. |
|
pure virtual |
Sets the type of blending used when blending the destination alpha.
| type | The blending to use. |
| targetId | The id of the target to alter. Between [0, 7]. |
|
pure virtual |
Sets the blending operation to use when blending alphas.
| type | The blending operation to use. |
| targetId | The id of the target to alter. Between [0, 7]. |
|
pure virtual |
Sets the write mask to use when blending colours.
| mask | The mask to use. |
| targetId | The id of the target to alter. Between [0, 7]. |
|
pure virtual |
Resets the state to its default values.
|
virtual |
Basic exporting capabilities.
| rootNode | The tree to export to. |
Implements nkExport::Exportable.
|
virtual |
Basic importing capabilities.
| rootNode | The tree to import from. |
Implements nkExport::Exportable.